package com.xdf.zipperdye.dao.business;

import com.xdf.zipperdye.model.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDetailMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    OrderDetail selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);

    List<OrderDetail> selectByPid(Integer parentId);

    int multiInsert(List<OrderDetail> records);
    int multiUpdate(List<OrderDetail> records);
    List<OrderDetail> getOrderDetail8PidState(@Param("parentId") Integer parentId,@Param("state") Integer state);
    int deleteByPid(Integer parentId);
    int multiSave(List<OrderDetail> records);
}